package com.xique.door.service;



import com.xique.door.bean.domain.PermissionGroupDevice;
import com.xique.door.bean.domain.PermissionGroupUser;
import com.xique.door.bean.domain.UserDevice;

import java.util.List;

public interface IPermissionGroupDomainService {

    /**
     * 权限组选择设备
     * @param devices
     * @param userDevices
     * @return
     */
    int selectDevice(List<PermissionGroupDevice> devices, List<UserDevice> userDevices);

    int deleteDevice(Long groupId, List<Long> deviceIds);

    /**
     * 权限组选择用户
     * @param users
     * @param userDevices
     * @return
     */
    int selectUser(List<PermissionGroupUser> users, List<UserDevice> userDevices);

    int deleteUser(Long groupId, List<Long> userIds);

    int deleteGroup(Long groupId);

    /**
     * 权限组添加设备
     * @author shd
     * @date 2021/7/8 14:36
     * @param devices
     * @param userDevices
     * @return boolean
     */
    boolean addDevices(List<PermissionGroupDevice> devices, List<UserDevice> userDevices);
}
